<?php

use Illuminate\Routing\Router;
use app\Admin\Controllers\HomeController;
Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
    'as'            => config('admin.route.prefix') . '.',
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('home');
    $router->get('ip_search', 'HomeController@ipSearch');
    $router->post('ip_search_action', 'HomeController@ipSearchAction');
    $router->get('ip_link_status', 'HomeController@ipLinkStatus');
    $router->get('ip_link_status_query', 'HomeController@ipLinkStatusQuery');
    $router->any('ip_search2', 'HomeController@ipSearch2');
});
